package com.guangzi.service;

import com.guangzi.entity.HUser;
import com.guangzi.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HuserRoleService extends BaseService{

    List<HUser> hUserList();
    List<Role> hRoleList();
    void save(String hHuserId, String roleList);

    //通过Id查询该用户的所有角色
    List<Role> hRoleByHuserIdList(@Param("hUserId") Integer hUserId);

    //保存用户
    void saveHuser(String phone, String roleList);

    int checkPhone(String phone);


}
